/*
package com.xiaoluyy.demo.config;

import com.xiaoluyy.mongo.MongoService;
import com.xiaoluyy.mongo.MongoServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.Arrays;

*/
/**
 * Mongodb client configuration*//*



@Configuration
public class MongoClientConfig {

    @Value("${mongo.addr}")
    String serverAddr;

    @Bean(name = "mongoClient")
    public MongoService beanstalkdClient() throws Exception {
        MongoServiceImpl mongoService = new MongoServiceImpl(serverAddr);
        mongoService.init();
        return mongoService;
    }

}
*/
